home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
009a
/
drvrdy.zip
/
DRVTEST.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-27
|
654b
|
38 lines
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Code to test the floppy_rdy function ... */
/* Execute program drvrdy.exe with a floppy in drive 'A', */
/* then open the door and try it again. */
void main(int argc, char *argv[]);
void main(int argc, char *argv[])
{
char str[120];
if (argc > 1)
{
strcpy(str, argv[1]);
strupr(str);
}
else
{
printf("Enter the driver letter of the disk drive to test if ready ? ");
gets(str);
strupr(str);
}
printf("Drive '%s' is ", str);
if (!floppy_rdy(*str)) printf("NOT ");
printf("ready\n");
}